#ifndef __SERVER_H__
#define __SERVER_H__

#include <arpa/inet.h>
#include <sys/socket.h>
#include <sys/select.h>

#include "common.h"
typedef struct _server_t{
    uint8_t init_ok;
    int server_sock;
    int client_sock;
    int server_exit;
    fd_set readfds; 
    fd_set writefds;
    fd_set errorfds; 
    pthread_t th; 
}server_t;

void* server_thread(void* param);


#endif //f __SERVER_H__